package com.zhuojy.equity.mall.admin.web.controller;

import com.zhuojy.equity.mall.admin.common.entity.TSeal;
import com.zhuojy.equity.mall.admin.common.pojo.ResultEntity;
import com.zhuojy.equity.mall.admin.service.SealService;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xrz
 * @version 1.0
 * @description:TODO
 * @date 2024/3/25 20:20
 */
@RestController
@RequestMapping("/seal")
@RequiredArgsConstructor
@Api(tags = "印章模块",value = "印章模块" )
public class SealController {
    @Autowired
    private SealService sealService;

    @RequestMapping("getSeal")
    public ResultEntity getSeal(@RequestBody TSeal tSeal, @RequestParam("pageSize") Integer pageSize,@RequestParam("pageNum")Integer pageNum){
       return sealService.getSeal(tSeal,pageSize,pageNum);
    }
}
